home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QuickTime - The Beta Release
/
QuickTime - The Beta Release.iso
/
Programming Stuff
/
Sample Code
/
Example Compressor
/
examplecodec.make
< prev
next >
Wrap
Text File
|
1991-09-05
|
1KB
|
40 lines
COptions = -warnings off -I {INTERFACES} -mc68020 -o "{warholObjects}"
AOptions = -wb -o "{warholObjects}"
Roptions = -append -i {interfaces}
interfaces = "{warholSources}Interface:"
BUILDRES = "{warholSources}BuildResults:"
imagecomp = "{warholSources}Interface:image compression.h"
codecguts = "{warholSources}Interface:Image Codec.h"
ExampleCodec ƒƒ makefile ExampleCodec.r {warholSources}Interface:"Image Codec.r" "{warholObjects}"registerthings
Echo "# `date -s -t` -- Rezzing ExampleCodec"
Rez {ROptions} -o ExampleCodec -c 'appl' -t 'thng' ExampleCodec.r
ExampleCodec ƒƒ "{warholObjects}"ExampleCodec.c.o ∂
# "{warholObjects}"ExampleCodec.a.o ∂
makefile
Echo "# `date -s -t` -- Linking ExampleCodec"
Link -w -m EXAMPLECODEC -rt 'cdec'=128 -ra 16 ∂
-sg Inst {SYMBOLS}∂
"{warholObjects}"ExampleCodec.c.o ∂
# "{warholObjects}"ExampleCodec.a.o ∂
"{Libraries}"Runtime.o ∂
"{Libraries}"Interface.o ∂
-o ExampleCodec -c "mark" -t "thng"
"{warholObjects}"ExampleCodec.c.o ƒ 'Makefile' ExampleCodec.c {imagecomp} {codecguts}
Echo "# `date -s -t` -- Compiling ExampleCodec"
C -b2 {COptions} ExampleCodec.c
"{warholObjects}"ExampleCodec.a.o ƒ 'Makefile' ExampleCodec.a {imagecomp} {codecguts}
Echo "# `date -s -t` -- Assembling ExampleCodec"
Asm {AOptions} ExampleCodec.a